package design.graduation.novelsystem.model.domian;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: 洪少尉
 * @Date: 2020/4/18 09:03
 * @Description: 
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "website_book_content")
public class BookContent implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 收录小说id外键
     */
    @TableField(value = "book_id")
    private Integer bookId;

    /**
     * 小说名
     */
    @TableField(value = "book_name")
    private String bookName;

    /**
     * 章节号
     */
    @TableField(value = "chapter_id")
    private Integer chapterId;

    /**
     * 章节名称
     */
    @TableField(value = "chapter_name")
    private String chapterName;

    /**
     * 章节内容
     */
    @TableField(value = "chapter_content")
    private String chapterContent;

    /**
     * 保存时间
     */
    @TableField(value = "save_time")
    private Date saveTime;

    /**
     * 是否可用[0:不可用，1:可用]
     */
    @TableField(value = "available")
    private Integer available;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_BOOK_ID = "book_id";

    public static final String COL_BOOK_NAME = "book_name";

    public static final String COL_CHAPTER_ID = "chapter_id";

    public static final String COL_CHAPTER_NAME = "chapter_name";

    public static final String COL_CHAPTER_CONTENT = "chapter_content";

    public static final String COL_SAVE_TIME = "save_time";

    public static final String COL_AVAILABLE = "available";
}